<?php

class trick extends database {

    protected $_table = "tbl_documents";

    public function getdata() {
        $sql = "select * from $this->_table where doc_type = 'trick'";
        $this->query($sql);
        return $this->fetchall();
    }

}
